/*
 * sched_policy.h
 *
 *  Created on: 2011-8-5
 *      Author: gexiao
 */

#ifndef SCHED_POLICY_H_
#define SCHED_POLICY_H_

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
    SP_BACKGROUND = 0,
    SP_FOREGROUND = 1,
} SchedPolicy;

extern int set_sched_policy(int tid, SchedPolicy policy);
extern int get_sched_policy(int tid, SchedPolicy *policy);

#ifdef __cplusplus
}
#endif
#endif /* SCHED_POLICY_H_ */
